package org.springblade.modules.admin.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

/**
 * @Description
 * @Author ysq
 * @Date 2021/7/30
 **/
@Data
public class GroupMemberTreeVO {

	/**
	 * ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 组名称
	 */
	private String parentName;

	private Integer type;

	@JsonSerialize(using = ToStringSerializer.class)
	private Long parentId;

	/**
	 * 组成员
	 */
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	List<MemberVO> members;

	/**
	 * 子级
	 */
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private List<MaintainGroupTreeVo> children;

	/**
	 * 是否是组长 0：否， 1：是
	 */
	private Integer groupLeader;

	private String tenantId;

	/**
	 * 用户手机号码
	 */
	private String phone;

}
